<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTableUserRecipesPending extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create( 'user_recipes_pending', function($table)
		{
			$table->integer( 'user_id' );
			$table->integer( 'recipe_id' );
			$table->primary( array( 'user_id', 'recipe_id' ) );
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('user_recipes_pending');
	}

}
